<div id="Mod98" class="ja-moduletable moduletable_hilite moduletable_tab  clearfix">
                                        <div class="ja-box-ct clearfix">
                                            <div style="width: 100%;" class="ja-tabswrap anion">
                                                <div class="container" id="myTab-366078093">
                                                    <div style="height: 30px;" class="ja-tabs-title-top">
                                                        <ul class="ja-tabs-title">
															<li title="Randomize" class="first active">
                                                                <h3>
                                                                    <span>Randomize</span></h3>
                                                            </li>
                                                            <li title="Popular" class="">
                                                                <h3>
                                                                    <span>Popular</span></h3>
                                                            </li>
                                                            <li title="Latest" class="last">
                                                                <h3>
                                                                    <span>Latest</span></h3>
                                                            </li>
                                                        </ul>
                                                    </div>
                                                    <div class="ja-tab-panels-top" style="height: 305px;">
														<div class="ja-tab-content" style="position: absolute; left: 0px; display: block;">
                                                            <div class="ja-tab-subcontent hwdvids">
                                                                {foreach name=outer item=data from=$randomize}
																	{include file= "video_list_m.tpl"}
																{/foreach}

                                                                {literal} <script type="text/javascript">
  var Ja_direction = '';
  var cookie_path = '{$root}';
  var cur_template_name = 'ja_anion';
  window.addEvent('load', function(){
	 
		   if(typeof(tmpl_name) =='undefined')
		   {
			  cookie_path = "ja_anion_direction";
		   }
		   else
		   {
			  cookie_path = tmpl_name+"_direction";
		   }
		   Ja_direction = Cookie.get(cookie_path);
		   if(!Ja_direction)
		   {
				cookie_path = cookie_path.replace("_direction","_profile");
			   Ja_direction = Cookie.get(cookie_path); 
		   }
		   var style_l_value = 'auto';
		   if(Ja_direction == 'rtl')
			{
			  					setStyleLinkWithRTLDirection();
						//	var ul_wrapper = $('Mod101').getElement("ul.ja-bulletin");
			//	ul_wrapper.getElements("li img").each();
			}
	});
                                                                </script>{/literal} 

                                                                {literal} <script language="javascript" type="text/javascript">
 function setStyleLinkWithRTLDirection()
 {
    var links = document.getElementsByTagName ('link');
		var script = document.createElement('link');
	script.setAttribute('type', 'text/css');
	script.setAttribute('rel', 'stylesheet');
	script.setAttribute('href', 'modules/mod_jabulletin/assets/mod_jabuletin_rtl.css');
	document.getElementsByTagName("head")[0].appendChild(script);
 }	
                                                                </script>{/literal} 

                                                            </div>
                                                        </div>
                                                        <div class="ja-tab-content" style="position: absolute; left: 0px; display: block;">
                                                            <div class="ja-tab-subcontent hwdvids">
                                                                {foreach name=outer item=data from=$popular}
																	{include file= "video_list_m.tpl"}
																{/foreach}

                                                                {literal} <script type="text/javascript">
  var Ja_direction = '';
  var cookie_path = '{$root}';
  var cur_template_name = 'ja_anion';
  window.addEvent('load', function(){
	 
		   if(typeof(tmpl_name) =='undefined')
		   {
			  cookie_path = "ja_anion_direction";
		   }
		   else
		   {
			  cookie_path = tmpl_name+"_direction";
		   }
		   Ja_direction = Cookie.get(cookie_path);
		   if(!Ja_direction)
		   {
				cookie_path = cookie_path.replace("_direction","_profile");
			   Ja_direction = Cookie.get(cookie_path); 
		   }
		   var style_l_value = 'auto';
		   if(Ja_direction == 'rtl')
			{
			  					setStyleLinkWithRTLDirection();
						//	var ul_wrapper = $('Mod101').getElement("ul.ja-bulletin");
			//	ul_wrapper.getElements("li img").each();
			}
	});
                                                                </script>{/literal} 

                                                                {literal} <script language="javascript" type="text/javascript">
 function setStyleLinkWithRTLDirection()
 {
    var links = document.getElementsByTagName ('link');
		var script = document.createElement('link');
	script.setAttribute('type', 'text/css');
	script.setAttribute('rel', 'stylesheet');
	script.setAttribute('href', 'modules/mod_jabulletin/assets/mod_jabuletin_rtl.css');
	document.getElementsByTagName("head")[0].appendChild(script);
 }	
                                                                </script>{/literal} 

                                                            </div>
                                                        </div>
                                                        <div class="ja-tab-content" style="position: absolute; left: 0px; display: none;">
                                                            <div class="ja-tab-subcontent hwdvids">
                                                                {foreach name=outer item=data from=$latest}
																	{include file= "video_list_m.tpl"}
																{/foreach}

                                                                {literal} <script type="text/javascript">
  var Ja_direction = '';
  var cookie_path = '{$root}';
  var cur_template_name = 'ja_anion';
  window.addEvent('load', function(){
	 
		   if(typeof(tmpl_name) =='undefined')
		   {
			  cookie_path = "ja_anion_direction";
		   }
		   else
		   {
			  cookie_path = tmpl_name+"_direction";
		   }
		   Ja_direction = Cookie.get(cookie_path);
		   if(!Ja_direction)
		   {
				cookie_path = cookie_path.replace("_direction","_profile");
			   Ja_direction = Cookie.get(cookie_path); 
		   }
		   var style_l_value = 'auto';
		   if(Ja_direction == 'rtl')
			{
			  			//	var ul_wrapper = $('Mod102').getElement("ul.ja-bulletin");
			//	ul_wrapper.getElements("li img").each();
			}
	});
                                                                </script>{/literal} 

                                                                {literal} <script language="javascript" type="text/javascript">
 function setStyleLinkWithRTLDirection()
 {
    var links = document.getElementsByTagName ('link');
		var script = document.createElement('link');
	script.setAttribute('type', 'text/css');
	script.setAttribute('rel', 'stylesheet');
	script.setAttribute('href', 'modules/mod_jabulletin/assets/mod_jabuletin_rtl.css');
	document.getElementsByTagName("head")[0].appendChild(script);
 }	
                                                                </script>{/literal} 

                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            {literal} <script charset="utf-8" type="text/javascript">
						window.addEvent("load", function(){
							new JATabs("myTab-366078093", {animType:'animNone',style:'anion',position:'top',width:'100%',height:'auto',mouseType:'click',duration:1000,colors:10,useAjax:false,ids:'101,102',skipAnim:false});		
						});																	
                                            </script>{/literal} 

                                        </div>
                                    </div>

{*foreach name=outer item=data from=$latest}
	{include file= "video_list_m.tpl"}
{/foreach*}